﻿@model VaccineEbook.Models.AccountModel.LoginModel
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_EmptyLayout.cshtml";
}
<link href="~/Content/AppContent/Signin.css" rel="stylesheet" />

@using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "form-signin" }))
{
    <h2 class="form-signin-header">Login</h2>
    
    @Html.AntiForgeryToken() // chặn sử dụng ở web khác
    @Html.ValidationSummary(true) // summary error
    
    @Html.TextBoxFor(m => m.Username, new { @class = "form-control", autofocus = "autofocus", placeholder = Html.DisplayNameFor(t => t.Username) })
    @Html.ValidationMessageFor(m => m.Username)
   
    @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = Html.DisplayNameFor(t => t.Password) })      
    @Html.ValidationMessageFor(m => m.Password)
    
    @Html.CheckBoxFor(m => m.RememberMe, new { style = "margin-bottom:20px" })
    @Html.DisplayNameFor(m => m.RememberMe)
    <br />
    <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
}


@section script {
    @Scripts.Render("~/bundles/jqueryval")
}
